#pragma once

#include "precomp.h"

class Lander
{
private:
	CL_Pointf starting_position;
	int maxFuel; //maximum amount of fuel
	float maxThrust; //the amount of thrust that the thrusters can generate

	CL_Pointf position; //position of the lander
	CL_Pointf velocity; //velocity of the lander
	CL_Pointf gravity; //acceleration due to gravity
	int fuel; //amount of fuel left

	CL_Pointf thrust; //the amount and direction of thrust

public:
	Lander(void);
	Lander(int x, int y, float _maxThrust, int _maxFuel);
	~Lander(void);

	void update(int delta);
	void draw(CL_GraphicContext& gc);
	void reset();

	//void thrustUp(bool on);
	//void thrustLeft(bool on);
	//void thrustRight(bool on);
	void setVerticalThrust(float f);
	void setHorizontalThrust(float f);

	float getMaxThrust();
	CL_Point getPosition();
	CL_Pointf getVelocity();
	int getFuel();
	float getFuelPercent();
};

